import app from '../../assets/js/app/index.js'
import store from '@/store'
const home = require('../../../public/restfulData/home.json')
const industryCloud = require('../../../public/restfulData/industryCloud.json')
const industrialMap = require('../../../public/restfulData/industrialMap.json')
const homeParams = require('../../../public/restfulData/homeParams.json')
const cloudParams = require('../../../public/restfulData/cloudParams.json')
const popData = require('../../../public/restfulData/popData.json')
const top10 = require('../../../public/restfulData/top10.json')
const init = () => {
  store.commit('setArea', homeParams.area)
  store.commit('setEntInd', cloudParams)
  store.commit('setPopData', popData)

  let data = [home, industryCloud, industrialMap]
  app.$emit(app.EventType.dataInit, data)
  app.log('=========file init===========')
}
export { init }
